interface FetchDoctorDetailAPIResData {
  code: number
  msg: string
  time: string
  data: Doctor
}

interface FetchDoctorDetailAPIParams {
  id: string
}

export function fetchDoctorDetailAPI(params: FetchDoctorDetailAPIParams, token: string) {
  return httpInstance.get<FetchDoctorDetailAPIResData, FetchDoctorDetailAPIParams>(
    '/api/team/doctordetail',
    { params, headers: { token } },
  )
}
